package com.realone.packman.codec.encoder;

import com.realone.packman.codec.encoder.vo.BmsEncoderDataVo0b;

/**
 * 开始升级 编码
 *
 * @author hugx
 * @create 2018-09-14 17:44
 */
public class BmsEncoder0b extends BmsEncoder<BmsEncoderDataVo0b> {

    @Override
    protected byte[] encoderData(BmsEncoderDataVo0b bmsEncoderDataVo0b) {
        byte[] result = new byte[1];
        result[0] = bmsEncoderDataVo0b.getUpgradeType();
        return result;
    }
}
